/*
 * Created by LiuYou on 2020/12/9.
 *
 */

#ifndef DESIGNPATTERN_SALESORDER_HPP
#define DESIGNPATTERN_SALESORDER_HPP


namespace Strategy {
    class Tax;

    class SalesOrder {
    public:
        // 这里记得使用工厂模式
        explicit SalesOrder(Tax* tax);

        double calculateTax();

    private:
        Tax* tax;

    };

}


#endif //DESIGNPATTERN_SALESORDER_HPP
